; Kernel Panic
KERNEL_PANIC equ os_fatal_error
os_fatal_error: ; Bad thing!
	mov ax,.title
	mov bx,.low
	mov cx,0x1F
	call os_draw_background
	jmp .message
	.title db 'KERN86/PANIC.SYS',0
	.low db 'Kernel Panic! Help!',0
.message:
	printf 'POS encountered a fatal error!' ; PANIC Identifier
	mov ax,20
	call os_pause
	call os_print_newline
	printf 'Registers : '
	call os_print_newline
	call os_dump_registers
	printf 'Restarting System..........'
	mov ax,100
	call os_pause
	mov al,0xFE
	out 0x64,al